Skip to content

fix(web): repair Redis promise typecheck regression - #1658

Merged
groupthinking merged 1 commit into
mainfrom
codex/video-pack-redis-typecheck-followup
Sep 8, 2026
Merged

fix(web): repair Redis promise typecheck regression#1658
groupthinking merged 1 commit into
mainfrom
codex/video-pack-redis-typecheck-followup

Conversation

@groupthinking

Copy link
Copy Markdown
Owner

Summary

Repairs the production web-build regression introduced when the atomic Video Pack Redis claim implementation merged in #1639.

The Redis initializer declared promise and captured it inside its own async initializer. TypeScript reports TS2454: Variable 'promise' is used before being assigned, causing next build to fail on current main and on unrelated Python PRs.

This change removes the self-reference. A failed import clears the only memoized Redis promise directly; concurrent callers still share that promise.

Evidence

  • CI 3547: Python tests pass; web build fails at video-pack-store.ts:132
  • CI 3548: independent reproduction on another Python-only branch

Safety boundary

Draft only. No Redis call, deployment, merge, production mutation, or data mutation is included.

@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
v0-uvai Canceled Canceled v0 Sep 6, 2026 7:40am UTC

@coderabbitai

coderabbitai Bot commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d10f4398-e412-4195-8585-341a277d2ff2


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the javascript Pull requests that update javascript code label Sep 6, 2026
@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 7c24b2a.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@groupthinking
groupthinking marked this pull request as ready for review September 8, 2026 03:26
Copilot AI balanced review requested due to automatic review settings September 8, 2026 03:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approved

The reviewed fix resolves the build regression with no unresolved issues.

Pull request overview

Fixes the Redis promise type-check regression that blocked production web builds.

Changes:

  • Removes the self-referential promise initializer.
  • Preserves memoization, concurrent promise sharing, and retry behavior after failure.
File summaries
File Description
apps/web/src/lib/video-pack-store.ts Corrects Redis promise initialization and failure cleanup.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@groupthinking
groupthinking merged commit 1c54062 into main Sep 8, 2026
30 of 34 checks passed
@groupthinking
groupthinking deleted the codex/video-pack-redis-typecheck-followup branch September 8, 2026 03:30
@linear-code

linear-code Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

GRV-488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants